package com.chenyue.cm.user.service;

import com.chenyue.cm.base.service.BaseServiceIface;
import com.chenyue.cm.bean.Success;
import com.chenyue.cm.common.vo.Page;
import com.chenyue.cm.user.domain.JdAppUser;
import com.chenyue.cm.user.domain.JdOrderInfo;
import com.chenyue.cm.user.domain.JdOrderItem;
import com.chenyue.cm.user.domain.vo.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
*
* @author chenyue-cm
*/
public interface JdOrderInfoService extends BaseServiceIface<JdOrderInfo> {

    JdOrderInfo saveGoodsOrder(GoodsJSVo goodsJSVo);

    Success saveOrderInfo(String id, String orderId, OrderVo vo);

    GoodsJSVo createOrder(HttpServletRequest request);

    Success createShoppingOrder(HttpServletRequest request);


    Page<List<OrderResultListVo>> getMemberOrderList(String id, Integer page, Integer rows, Integer orderType);

    OrderDetailVo getOrderDetail(JdAppUser user,String id);

    List<OrderItemDetailVo> getOrderItemList(String orderId, String skuId, String keyWords, String flag);

    List<JdOrderItem> getOrderItemListByOrderId(String orderId, String skuId, String keyWords, String flag);

    Success cancellationOrder(String id, String orderId);

    Success saveOrderComment(HttpServletRequest request, JdAppUser appUser);

    Success getSumMoney(List<JdOrderItem> orderItem);

    Success refundApply(String id, HttpServletRequest request);

    OrderDetailVo getorderlist(String orderId);
}
